<?php


//变量
  #值传递
  $a = 1;
  $b = $a;
  $b = 2;
  echo "值传递:a=",$a,"-b=",$b,'<br>';


//  引用传递、
  $c = 10;
  $d = &$c;
  $d = 2;
  echo "引用传递:c=",$c,"-d=",$d,'<br>';
?>